<?php

class FP_View_Helper_Years
{
  public function years($pStartYear=null, $pEndYear=null, $pExtendBy=0){
    $date = new Zend_Date();
    $year = $date->get(Zend_Date::YEAR);

    if (is_null($pStartYear))
      $start_year = 1910;
    else
      $start_year = $pStartYear;

    if (is_null($pEndYear))
      $end_year = $year + $pExtendBy;
    else
      $end_year = $pEndYear;

    return range($start_year, $end_year);

  }
}

?>